<?php
if (! defined ( 'IN_BIC' )) {
	die ( '非法Controller访问来源!' );
}
/**
 *
 * @package Bic
 * @author Bic
 * @version $Id: BicSqli.php 2011年1月14日 22时39分15秒
 * @copyright (c) 2010 Bic
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 *
 * Minimum Requirement: PHP 5.0.1
 */
class Controller_Index extends Bic_Controller_Base {
    
    function preController() {
        parent::preController();
    }

    public function index(){
        //debug($_GET);
        
//        $cache = new Bic_Cache('file',array('_lifeTime'=>30));
//        $isCached = $cache ->read( 'isCached');
//        $isCached = $cache ->write( 'isCached', array('a'=>'a2','b'=>'b2'));
        
        $test = Bic_Cache::create('file',array('_lifeTime'=>30));
        $test -> write('','test',"test content");
        debug($test -> read('default','test'));
        
        echo $this->view()->render('index.tpl');
    }
}

?>